package com.mall.alipay.config;

import org.redisson.Redisson;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/18 16:36
 */
@Configuration
public class MyConfiguration {

    @Bean
    public Redisson redisson(){
        Config config = new Config();
        config.useSingleServer().setAddress("redis://10.3.176.42:6379");
        return (Redisson) Redisson.create(config);
    }
}
